package cn.tedu.qxhouserent.house.mapper;

import cn.tedu.qxhouserent.house.pojo.entity.House;
import cn.tedu.qxhouserent.house.pojo.entity.Section;
import cn.tedu.qxhouserent.house.pojo.vo.*;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface HouseMapper extends BaseMapper<House> {

    List<HouseListItemVO> list();

    HouseStandardVO getStandardById(Long id);

    List<LeaseHouseListItemVO> listLeaseHouse();

    LeaseHouseStandardVO getStandardLeaseHouse(Long id);

    List<NewHouseListItemVO> listNewHouse();

    NewHouseStandardVO getStandardNewHouse(Long id);

    List<SecondHandHouseListItemVO> listSecondHandHouse();

    SecondHandHouseStandardVO getStandardSecondHandHouse(Long id);

    List<RecomHouseListItemVO> listRecom();

    List<HouseListItemVO> cha(@Param("name") String name, @Param("hid") Long hid);

    //二手推荐列表
    List<RecomHouseListItemVO> ershoulistRecom();

    //买房推荐列表
    List<RecomHouseListItemVO> mailistRecom();

    List<HouseListItemVO> cha(String name);

    List<HouseListItemVO> cha2(@Param("name") String name, @Param("hid") Long hid);

    Integer[] sectionSelect(String name);

    List<HouseListItemVO> cha3(@Param("s") Integer s, @Param("hid") Long hid);

    List<HouseListItemVO> chaxiang(@Param("p0") Integer p0,@Param("p1") Integer p1,@Param("areaArr0") Integer areaArr0,@Param("areaArr1") Integer areaArr1,@Param("f0") Integer f0,@Param("f1") Integer f1,@Param("timeArr0") Integer timeArr0,@Param("timeArr1") Integer timeArr1, @Param("ageArr0") Integer ageArr0,@Param("ageArr1")Integer ageArr1,@Param("h") Integer h, @Param("r") Integer r,@Param("s") Integer s,@Param("t") Integer t,@Param("hid") Long hid);

    List<HouseListItemVO> listHouseByUserId(Long userId);
}
